package com.wigo.controller;

import com.wigo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @Autowired
    OrderService orderService;

    @RequestMapping("/getOrder")
    public String getOrder(String orderId){
        return "调用订单服务 orderId:" + orderId;
    }

    @RequestMapping("/getMember")
    public String getMember(String memberId){
        return "通过订单服务，调用会员服务器 memberId:" + memberId + " members:" + orderService.getMember();
    }
}
